<template>
 <div class="home"> 
    <waphome v-show="$store.state.isHomeShow">
        <span>{{setMsg}}</span>
    </waphome>
    <tablist @getmsg="setmsgList"></tablist> 
 </div>
</template>
<script>
import tablist from './component/Tablist'
import waphome from './component/Header_home'
export default {
  data () {
    return {
      navList: [],
      itemList: null,
      dataList: [],
      setMsg: ''
    }
  },
  components: {
    tablist,
    waphome
  },
  methods: {
    // 接收tablist组件传过来的值
    setmsgList(data){
      this.setMsg = data
    }
  }
}
</script>
<style scoped lang='scss'>
.home{
  width: 100%;
  margin-bottom: 50px;
  background-color: #f4f4f4;
  .banner-images{
    width: 100%;
    background-color: #f4f4f4;
    img{
      width: 100%;
      margin-bottom: 8px;
    }
  }
}

.van-collapse-item__content{
  padding: 0 !important;
}
</style>
